package com.pomelo.base.core.bean;

/**
 * 表索引信息
 *
 * @author biankudingcha
 * @date: 2021-07-23
 * @since 0.5.0
 */
public class TableIndexInfo implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 索引名称
     */
    private String indexName;

    /**
     * 列名称
     */
    private String columnName;

    /**
     * 索引值是否可以不唯一
     */
    private boolean nonUnique = true;

    public TableIndexInfo(String indexName, String columnName, boolean nonUnique) {
        this.indexName = indexName;
        this.columnName = columnName;
        this.nonUnique = nonUnique;
    }

    /**
     * 获取索引名称
     *
     * @return String
     */
    public String getIndexName() {
        return indexName;
    }

    /**
     * 获取列名称
     *
     * @return String
     */
    public String getColumnName() {
        return columnName;
    }

    /**
     * 是否唯一
     *
     * @return boolean
     */
    public boolean isNonUnique() {
        return nonUnique;
    }

}
